package com.ying.dogying.im.dto.lastDto;

import java.util.Date;

/**
 * 入db或入redis实体类
 */
public class ImLastMessage {

    private Long id;// 发送人(群)id

    private String username;// 发送人昵称

    private String avatar;// 发送人头像

    private String content;// 发送人内容

    private Boolean mine;// 发送人标识（true：显示在右变，false：显示在左边）

    private String type;// 接受类型：单聊（friend）、群聊（group）、从发送消息传递的to里面获取

    private Long cid;// 消息id（可不传，除非你要对消息进行一些操作，如撤回）

    private Long fromId;// 发送人id（可用于自动解决浏览器多窗口时的一些问题）

    private Date timestamp;// 发送时间

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getAvatar() {
        return avatar;
    }

    public void setAvatar(String avatar) {
        this.avatar = avatar;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public Boolean getMine() {
        return mine;
    }

    public void setMine(Boolean mine) {
        this.mine = mine;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public Long getCid() {
        return cid;
    }

    public void setCid(Long cid) {
        this.cid = cid;
    }

    public Long getFromId() {
        return fromId;
    }

    public void setFromId(Long fromId) {
        this.fromId = fromId;
    }

    public Date getTimestamp() {
        return timestamp;
    }

    public void setTimestamp(Date timestamp) {
        this.timestamp = timestamp;
    }
}
